package com.oracle.sbdb.testdao;

import org.junit.Test;

import com.oracle.sbdb.dao.EngineerDao;
import com.oracle.sbdb.model.Engineer;
import com.oracle.sbdb.util.MD5Util;

public class EngineerDaoTest {

	@Test
	public void test() {
		Engineer engineer = new Engineer();
		engineer.setDepartment_id(1);
		engineer.setE_mail("mengke.f.feng@oracle.com");
		engineer.setEngineer_id(25160);
		engineer.setFirst_name("Mengke");
		engineer.setLast_name("Feng");
		engineer.setGid("MENFENG");
		engineer.setPassword(MD5Util.getMD5("l1admin"));
		
		EngineerDao dao = new EngineerDao();
		dao.insert(engineer);
//		dao.update(engineer);
	}

}
